.w {
    width: 1200px;
    margin: 0 auto;
}

.red {
    color: #e3201b;
}

@font-face {
  font-family: 'icomoon';
  src:  url('../fonts/icomoon.eot?p954ns');
  src:  url('../fonts/icomoon.eot?p954ns#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?p954ns') format('truetype'),
    url('../fonts/icomoon.woff?p954ns') format('woff'),
    url('../fonts/icomoon.svg?p954ns#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.nav_arr {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-top: 8px;
    margin-left: 10px;
    line-height: 15px;
    border-radius: 7.5px;
    border: 1px solid #e3201b;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #e3201b;
    &:hover {
        background-color: #e3201b;
        color: #fff;
    }
}

.two_row {
    overflow: hidden;
    text-overflow: ellipsis;
    /* 弹性伸缩盒子模型显示 */
    display: -webkit-box;
    /* 限制在一个块元素显示的文本的行数 */
    -webkit-line-clamp: 2;
    /* 设置或检索伸缩盒对象的子元素的排列方式 */
    -webkit-box-orient: vertical;
}

// 头部个人信息模块 
.user {
    width: 100%;
    height: 30px;
    line-height: 30px;
    background-color: #e3e4e5;
    .location {
        float: left;
        width: 60px;
        &::before {
            content:'\e948';
            font-family:'icomoon';
            color: #e3201b;
            font-size: 14px;
            margin-right: 5px;
            margin-left: 10px;
        }
    }
    .login {
        margin-left: 400px;
        float: left;
        .user_login {
            color: #999;
        }
    }
    .user_items {
        display: flex;
        width: 600px;
        float: right;
        li {
            margin-top: 8px;
            width: 80px;
            height: 16px;
            line-height: 16px;
            padding-left: 10px;
            border-left: 1px solid #999;
            span {
                display: inline-block;
                margin-left: 5px;
                transform: rotate(90deg);
            }
        }
    }
}

// 头部个人信息模块tab栏切换
.js_menu {
    position: relative;
    .loca {
        display: none;
        z-index: 999;
        position: absolute;
        top: 0;
        left: 0;
        width: 320px;
        height: 260px;
        ul {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            border: 1px solid #999;
            li {
                width: 60px;
                margin-top: 15px;
                padding-left: 10px;
                color: #999;  
            }
            .red_loc {
                background-color: #e3201b;
                color: #fff;
        }
        }
       
    }
    .myjd {
        display: none;
        z-index: 999;
        position: absolute;
        top: 0;
        left: 680px;
        width: 280px;
        height: 160px;
        background-color: #fff;
        border: 1px solid #999;
        border-top: 0 solid #000;
        .myjd_top {
            height: 90px;
            display: flex;
            flex-wrap: wrap;
            border-bottom: 1px solid #999;
            li {
                width: 40%;
                margin-left: 10px;
                margin-top: 10px;
                a {
                    color: #999;
                    &:hover {
                        color:#e3201b;
                    }
                }
            }
        }
        .myjd_btm {
            display: flex;
            flex-wrap: wrap;
            li {
                width: 40%;
                margin-left: 10px;
                margin-top: 10px;
                a {
                    color: #999;
                    &:hover {
                        color:#e3201b;
                    }
                }
            }
        }
    }
    .qiye {
        display: none;
        z-index: 999;
        position: absolute;
        top: 0;
        left: 840px;
        width: 160px;
        height: 140px;
        background-color: #fff;
        .qiye_menu {
            display: flex;
            flex-wrap: wrap;
            li {
                width: 40%;
                margin-top: 8px;
                margin-left: 5px;
                &:nth-child(9) {
                    width: 100%;
                }
            }
        }
    }
    .jd_phone {
        display: none;
        z-index: 999;
        position: absolute;
        top: 2px;
        left: 1000px;
        width: 200px;
        height: 500px;
        border: 1px solid #666;
        border-bottom: 4px solid #666;
        &::before {
            position: absolute;
            top: -6px;
            left: 112px;
            content: '';
            width: 10px;
            height: 10px;
            transform: rotate(45deg);
            background-color: #fff;
        }
        .jd_phone_item {
            height: 100px;
            border-bottom: 1px solid #666;
            .img_code {
                float: left;
                height: 70px;
                width: 70px;
                margin-top: 15px;
                margin-left: 5px;
                background: url(../images/jd_phone_1.png.webp) no-repeat 0 0;
                background-size: 70px auto;
            }
            .right_menu {
                    float: left;
                    height: 70px;
                    margin-top: 15px;
                    margin-left: 5px;
                    ul {
                        margin-top: 5px;
                        height: 25px;
                        display: flex;
                        justify-content: left;
                        li {
                            width: 25px;
                            margin-left: 2px;
                            border: 1px solid #333;
                            background: url(../images/iphone.jpeg) no-repeat 0 0;
                            background-size: 25px 25px;
                            &:nth-child(2) {
                                background: url(../images/apk.jpeg);
                                background-size: 25px 25px;
                            }
                            &:nth-child(3) {
                                background: url(../images/ipad.webp);
                                background-size: 25px 25px;
                            }
                            
                        }
                    }
                }
            &:nth-child(2) {
                .img_code {
                background: url(../images/jd_phone_2.png.webp) no-repeat 0 0;
                background-size: 70px auto;
            }
            }
             &:nth-child(3) {
                .img_code {
                background: url(../images/jd_phone_3.jpg.webp) no-repeat 0 0;
                background-size: 70px auto;
            }
            }
             &:nth-child(4) {
                .img_code {
                background: url(../images/jd_phone_4.webp) no-repeat 0 0;
                background-size: 70px auto;
            }
            }
             &:nth-child(5) {
                .img_code {
                background: url(../images/jd_phone_5.jpg.webp) no-repeat 0 0;
                background-size: 70px auto;
            }
            }

        }
    }
}

.search_tab {
    position: relative;
    height: 120px;
    margin-top: 10px;
    
    .icon {
        float: left;
        width: 190px;
        height: 120px;
        background: url(../images/jd_icon.gif) no-repeat 0 0;
        background-size: 190px auto;
    }
    .search_item {
        float: left;
        width: 700px;
        margin-top: 10px;
        margin-left: 70px; 
        .left {
            float: left;
            input {
                width: 490px;
                height: 40px;
                padding-left: 20px;
                border: 2px solid #e3201b;
            }
            button {
                width: 60px;
                height: 40px;
                margin-left: -10px;
                background-color: #e3201b;
                color: #fff;
                font-size: 14px;
                font-weight: 700;
                &:hover {
                    border: 1px solid #333;
                }
            }
            .shop_menu {
                margin-top: 5px;
                width: 500px;
                display: flex;
                li {
                    margin-right: 12px;
                }
            }
        }
        .shop_car {
            position: relative;
            float: right;
            width: 130px;
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            border: 1px solid #fff;
            &::before {
                content: '\e93a';
                font-family: 'icomoon';
                color:#b1191a;
                font-size: 14px;
                margin: 0 10px;
            }
            .num {
                position: absolute;
                top: -5px;
                left: 23px;
                height: 18px;
                text-align: center;
                line-height: 18px;
                background-color: #b1191a;
                border-radius: 9px 9px 9px 0;
                font-size: 12px;
                color: #fefefe;
        }
    }
    }
.right_adimg {
        float: right;
        width: 190px;
        height: 120px;
        background: url(../uploads/search_ad.png.webp) no-repeat 0 0;
        background-size: 190px auto;
    }
    .menu_lists {
        position: absolute;
        top: 83px;
        left: 203px;
        margin-top: 10px;
        display: flex;
        li {
            margin: 0 10px;
            a {
                font-size: 16px;
            }
        }
    }
}

.jd_foot {
    clear: both;
    margin-top: 20px;
    .service_unit {
        display: flex;
        justify-content: space-around;
        li {
            flex: 1;
            display: flex;
            margin-bottom: 15px;
            .liujiao {
                background-color: #fff;
                font-size: 24px;
                color: #b1191a;
                margin: 0 15px;
            }
            .service_name {
                margin-top: 5px;
                color: #333;
            }
        }
    }
    .service_items {
        margin-top: 20px;
        margin-bottom: 20px;
        border-bottom: 2px solid #fff;
        height: 190px;
        display: flex;
        justify-content: space-around;
        .jd_ziying {
            float: right;
            width: 200px;
            h4 {
                padding-left: 20px;
                margin-bottom: 10px;
                font-size: 16px;
                color: #333;
            }
            a {
                padding-left: 130px;
                margin-top: 5px;
            }
        }
        .col {
            flex: 1;
            h4 {
                margin-bottom: 10px;
                font-size: 14px;
                color: #333;
            }
            li {
                margin-bottom: 5px;
            }
        }
    }
    .kefu {
        display: flex;
        margin-left: 35px;
        margin-bottom: 20px;
        li {
            span {
                margin: 0 10px;
            }
        }
    }
    .jd_msg {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        .row {
            flex: 1;
            margin-bottom: 5px;
            span {
                margin: 0 5px;
            }
        }
    }
    .mod_copyright_auth {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        margin-bottom: 50px;
        li {
            width: 110px;
            height: 35px;
            background-color: #eeeeee;
            margin-left: 10px;
            padding-right: 5px;
            .copyright_img {
               float: left;
               width: 35px;
               height: 35px;
               margin-right: 10px;
               background: url(../images/copyright.png) no-repeat 0 0;
               background-size: 35px 35px;
            }
            .chengxin {
                line-height: 35px;
            }
        }
    }
}